/**
 * 
 */
const express = require('express');
const service = require('./service');
const router = express.Router();

router.get('/books', service.allBooks);
router.post('/book', service.addBook);
router.get('/book/:id', service.getBookById);
router.put('/book', service.editBook);
router.delete('/book/:id', service.deleteBook);

module.exports = router;
